const { log } = require('console');
const fs = require('fs');

const data = fs.readFileSync(__dirname + '/sql.sql', 'utf8');
const arr = data.split('\r\n');




arr.forEach((item, index) => {
    if (!item) {
    
    } else {
        let str = item.replace(/^\s+|\s+$/g, "");
        console.log(str); // 输出 "Hello, World!"
        if(/^CREATE/.test(str)){
            
        }
    }
})